package com.bing.bean;

import com.bing.bean.weixin.MsgType;
import com.bing.utils.StringDataAdapter;
import org.springframework.beans.factory.annotation.Value;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 * Created by kaibb on 2014/11/23.
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class TestEL {
    @XmlJavaTypeAdapter(StringDataAdapter.class)
    private String dbName;

    private String noExit;

    @Value("${weixin.appid}")
    private String value;

    private MsgType type;

    public String getNoExit() {
        return noExit;
    }

    public void setNoExit(String noExit) {
        this.noExit = noExit;
    }

    public String getDbName() {
        return "<![CDATA[" + dbName + "]]>";
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
